package com.liuchen.common.startup;

import org.apache.log4j.Logger;
import org.springframework.boot.CommandLineRunner;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;

/**
 * Created by liuchen on 2017/4/6.
 * 启动执行
 */
@Component
@Order(1)//执行顺序
public class DemoStartup implements CommandLineRunner {

    //日志
    public Logger log = Logger.getLogger(getClass().getName());

    @Override
    public void run(String... args) throws Exception {
        log.info("启动执行Demo测试,服务启动执行，执行加载数据等操作.....");
    }

}
